www.gusucode.com > 茶都拼客网全功能版 8 > 茶都拼客网全功能版 8.8源码程序/teasdxmccom/茶都拼客网V8.8(全功能,无限制,完全开源)/admin/City_kind.asp

    <!--#include file="../Ku_inc/Ku_sql.asp"-->
<!--#include file="../Ku_inc/Ku_config.asp"-->
<!--#include file="Ku_conn.asp"-->
<!--#include file="../Ku_inc/Ku_md5.asp"-->
<!--#include file="../Ku_inc/inc.asp"-->
<!-- #include file="Session.asp"-->
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>城市分类</title>
<link href="include/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
input{
	height:22px;
	border:1px solid #BEBEBE;
	background-color:#FFF;
	padding-top: 2px;
	padding-right: 8px;
	padding-bottom: 0pt;
	padding-left: 3px;
}
-->
</style>
</head>

<body>

<div align="center">

<table border="0" width="95%" height="40" cellpadding="0" cellspacing="0"  >
	<tr >
		<td height="40" style="border: 1px solid #D0D4D9" bgcolor="#EEEEEE" >&nbsp;<b>当前栏目:</b>&gt; 城市分类</td>
	</tr>
    <tr><td height="30" bgcolor="#1111ff">
<div align="center">
    <input class="input_back" type="button" name="Submit0" value="拼客信息"onclick="location.href='Pinke_list.asp'"/>      
    <input class="input_back" type="button" name="Submit0" value="添加拼客"onclick="location.href='Pinke_add.asp'"/> 
    <input class="input_back" type="button" name="Submit0" value="拼客分类"onclick="location.href='Pinke_kind.asp'"/> 
    <input style="background-color:#ff1111" class="input_back" type="button" name="Submit0" value="添加一级城市"onclick="location.href='City_kind.asp?action=add'"/>         
	<input class="input_back" type="button" name="Submit1" value="管理首页"onclick="location.href='main.asp'"/>
</div>
</td></tr>
</table>

</div>

<!---弹窗-->
<!---添加大类-->
<%if request("action")="add" then%>
<div align="center">

<table border="0" width="95%" height="40" cellpadding="0" cellspacing="0" bgcolor=#FAFBF9>
	<tr >
		<td height="30" style="border: 1px solid #D0D4D9" bgcolor="#ff6600">
			<form id="form1" name="form1" method="POST" action="Deal_pinke.asp?action=add_bigkind">

	<p align="center">添加一级城市名称:
<input type="text" name="bigkind" size="20" maxlength="6">
<input type="submit" value="添 加" name="B1" style="background-color:#ffdd00">
 <input type="reset" value="重 置" name="B2" style="background-color:#ffaaaa">
</p>
		</td>
	</tr>
</form>
</table>

</div>
<%end if%>
<!---添加小类-->
<%if request("action")="add_smallkind" then
bigid=request("bigid")

%>
<div align="center">

<table border="0" width="95%" height="40" cellpadding="0" cellspacing="0" bgcolor=#FAFBF9>
	<tr >
		<td height="30" style="border: 1px solid #D0D4D9" bgcolor="#99cc99">
			<form method="POST" action="Deal_Pinke.asp?action=add_smallkind&bigid=<%=bigid%>">

	<p align="center">添加二级城市名称:
<input type="text" name="smallkind" size="20" value="" maxlength="6">
<input type="submit" value="添 加" name="B1" style="background-color:#ffdd00">
 <input type="reset" value="重 置" name="B2" style="background-color:#ffaaaa">
</p>

		</td>
	</tr>
</form>
</table>

</div>
<%end if%>
<!---修改大类-->
<%if request("action")="edit_bigkind" then
bigid=request("bigid")
    set rs=server.createobject("adodb.recordset")
    sql="select * from Gu_shi where id="&bigid&""
    rs.open sql,conn,1,3
%>
<div align="center">

<table border="0" width="95%" height="30" cellpadding="0" cellspacing="0" bgcolor=#FAFBF9>
	<tr >
		<td height="30" style="border: 1px solid #D0D4D9" bgcolor="#ff6600">
			<form method="POST" action="Deal_pinke.asp?action=edit_bigkind&bigid=<%=bigid%>">

	<p align="center">修改一级城市名称:
<input type="text" name="bigkind" size="20" value="<%=rs("class1")%>" maxlength="6">
<input type="submit" value="修 改" name="B1" style="background-color:#00dd00">
 <input type="reset" value="重 置" name="B2" style="background-color:#ffaaaa">
</p>

		</td>
	</tr>
</form>
</table>

</div>
<%end if%>
<!---修改小类-->

<%if request("action")="edit_smallkind" then
smallid=request("smallid")
    set rs=server.createobject("adodb.recordset")
    sql="select * from Gu_qu where id="&smallid&""
    rs.open sql,conn,1,3
%>
<div align="center">

<table border="0" width="95%" height="30" cellpadding="0" cellspacing="0" bgcolor=#FAFBF9>
	<tr >
		<td height="30" style="border: 1px solid #D0D4D9" bgcolor="#bbbbbb">
			<form method="POST" action="Deal_Pinke.asp?action=edit_smallkind&smallid=<%=smallid%>">

	<p align="center">修改二级城市名称:
<input type="text" name="smallkind" size="20" value="<%=rs("class2")%>" maxlength="6">
<input type="submit" value="修 改" name="B1" style="background-color:#00dd00">
 <input type="reset" value="重 置" name="B2" style="background-color:#ffaaaa">
</p>

		</td>
	</tr>
</form>
</table>

</div>
<%end if%>
<!---弹窗-->

<%
    set rs=server.createobject("adodb.recordset")
    sql="select  * from Gu_shi ORDER BY id DESC"
    rs.open sql,conn,1,1
    
    if Rs.eof or Rs.bof then
    response.write"<div align='center'>暂无任何一级城市<div>"
    end if 
    do while not rs.eof
    titles = rs("class1")
    

%>


<div align="center">

<table border="0" width="95%" cellpadding="0" cellspacing="0"  style="border: 1px solid #D0D4D9" height="81">
	<tr >
		<td>
		
		<div align="center">
			<table border="0" width="98%" id="table1" cellpadding="0" cellspacing="1" height="55">
				<tr>
					<td height="30" bgcolor="#dd6600">
					<div align="center">
						<table border="0" width="100%" id="table2">
							<tr>
								<td width="39"></td>
								<td ><b><%=titles%></b></td>
								<td width="105" bgcolor="#cccccc">
<div align="center">
								<a href="?action=add_smallkind&bigid=<%=rs("id")%>">
								<font color="#ff0000">添加下级城市</font></a></div></td>
								<td width="60" height="30" bgcolor="#aaaaaa">
<div align="center">
<a href="?action=edit_bigkind&bigid=<%=rs("id")%>"><img border="0" src="../pkxx-Img/b_xg.gif"></a></div></td>
								<td width="60" height="30" bgcolor="#aaaaaa">
<div align="center">
<a href="Deal_pinke.asp?action=delbig&bigid=<%=rs("id")%>"><img border="0" src="../pkxx-Img/del.gif"></a></div></td>
							</tr>
						</table>
					</div>
					</td>
				</tr>
				<tr>
					<td height="25" style="border: 1px solid #FAFAFA" bgcolor="#99cc99">
					<div align="center">

<table border="0" width="99%" >

<%
	set rsfl=server.CreateObject("adodb.recordset")
sqlfl="select * from Gu_qu where class1="&rs("id")&" order by id desc"
rsfl.open sqlfl,conn,1,1
if rsfl.eof then
%>
<tr style="border: 1px solid #D0D4D9"><td><font color="#FF0000">暂无添加任何城市!</font></td></tr>
<% else 


  k=1
%>
<tr>
<% do while not rsfl.eof%>
<td width="20%" height="25" bgcolor="#cccccc">
<div align="center">
<%=rsfl("class2")%>  
[ <a href="?action=edit_smallkind&smallid=<%=rsfl("id")%>"><u>修改</u></a>] [ 
<a href="Deal_pinke.asp?action=delsmall&smallid=<%=rsfl("id")%>"><u>删除</u></a> ]
</div>
</td>
<% if k mod 5 =0 then%> 
</tr><tr  height="30">
<% end if%><% k=k+1
   rsfl.movenext
   loop
end if
rsfl.close
set rsfl=nothing
%>

	</tr>
</table>

</div>

					</td>
				</tr>
			</table>
		</div>
		
		</td></tr>
</table>

</div>
<div>
<table>
<tr><td height="5"></td></tr></table>
</div>
<% 
    rs.movenext  
    loop
    Rs.Close
    Set Rs=Nothing
%>





















<p align="center"><!-- #include file="Ku_bottom.asp"--></p>
</body>

</html>